package com.liuceng.zen.service;

import com.liuceng.zen.mapper.CrtSizeMediumMenuMapper;
import com.liuceng.zen.pojo.domain.CrtSizeMediumMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * Created by yanwen on 16-11-3.
 * CrtSizeMediumMenuService :
 */
@Service
public class CrtSizeMediumMenuService extends BaseService<CrtSizeMediumMenu>{

    @Autowired
    private CrtSizeMediumMenuMapper crtSizeMediumMenuMapper;

    //获取当前公司的创意尺寸

    public List<CrtSizeMediumMenu> findAll(Integer memberId){
        Map<String,Object> map=new HashMap<>();
        map.put("memberId",memberId);
        return crtSizeMediumMenuMapper.finByParams(map);
    }

    public List<CrtSizeMediumMenu> findSomeByType(Integer memberId,Integer frontCampaignType){
        Map<String,Object> map=new HashMap<>();
        map.put("memberId",memberId);
        map.put("frontCampaignType",frontCampaignType);
        return crtSizeMediumMenuMapper.finByParams(map);
    }

}
